package res

import "time"

// {
//    "method": "GET",
//    "url": "https://bj29.cn-beijing.data.alicloudccp.com/djfGtjx5%2F95850361%2F613c602f7535a44419064885885a8485c82bf378%2F613c602ff90490cd10f8488fa416ea07c6c10e39?di=bj29&dr=95850361&f=613c6281782791475ca54a2b90c88792390917cc&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27start%25281%2529.bat&u=4eb26411a9b74e2bbca0347b56401309&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-additional-headers=referer&x-oss-expires=1631526145&x-oss-signature=xtqLkaFK9%2FggkfGvfINciMs5qMkM8BwMQDMBiAC1PC8%3D&x-oss-signature-version=OSS2",
//    "internal_url": "http://ccp-bj29-bj-1592982087.oss-cn-beijing-internal.aliyuncs.com/djfGtjx5%2F95850361%2F613c602f7535a44419064885885a8485c82bf378%2F613c602ff90490cd10f8488fa416ea07c6c10e39?di=bj29&dr=95850361&f=613c6281782791475ca54a2b90c88792390917cc&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27start%25281%2529.bat&u=4eb26411a9b74e2bbca0347b56401309&x-oss-access-key-id=LTAIsE5mAn2F493Q&x-oss-additional-headers=referer&x-oss-expires=1631526145&x-oss-signature=xtqLkaFK9%2FggkfGvfINciMs5qMkM8BwMQDMBiAC1PC8%3D&x-oss-signature-version=OSS2",
//    "cdn_url": "",
//    "expiration": "2021-09-13T09:42:25.595Z",
//    "size": 148,
//    "ratelimit": {
//        "part_speed": -1,
//        "part_size": -1
//    }
//}
type DownloadURLRes struct {
	Method      string    `json:"method"`
	URL         string    `json:"url"`
	InternalURL string    `json:"internal_url"`
	CdnURL      string    `json:"cdn_url"`
	Expiration  time.Time `json:"expiration"`
	Size        int       `json:"size"`
	Ratelimit   Ratelimit `json:"ratelimit"`
}
type Ratelimit struct {
	PartSpeed int `json:"part_speed"`
	PartSize  int `json:"part_size"`
}
